from odoo import fields, models, api
from odoo.exceptions import UserError

class RPCustomerInheritForAPI(models.Model):
    _inherit = 'rp.customer'

    token_ids = fields.One2many(string="API Access Tokens", comodel_name="api.access.token", inverse_name="customer_id")
